package com.eightbears.beboy.entity;

import com.eightbears.beboy.base.BaseEntity;

import java.util.List;

import static com.eightbears.beboy.ui.merchant.activity.ShopPowerManageActivity.STATUS_CLOSE;
import static com.eightbears.beboy.ui.merchant.activity.ShopPowerManageActivity.STATUS_OPEN;

public class ManagerEntity extends BaseEntity{


    private List<Manager> data;


    public List<Manager> getData() {
        return data;
    }

    public void setData(List<Manager> data) {
        this.data = data;
    }

    public static class Manager {

        private String id;
        private String user_id;
        private String shop_id;
        private String name;
        private String status;
        private String level;
        private String company;
        private String company_phone;
        private UserBean user;


        public String changeStatus() {
            if (getStatus().equals(STATUS_OPEN)) {
                this.setStatus(STATUS_CLOSE);
            } else {
                this.setStatus(STATUS_OPEN);
            }

            return getStatus();
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getCompany() {
            return company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public String getCompany_phone() {
            return company_phone;
        }

        public void setCompany_phone(String company_phone) {
            this.company_phone = company_phone;
        }

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public static class UserBean {

            private String user_id;
            private String nickname;
            private String cover;

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getCover() {
                return cover;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }
        }
    }
}
